﻿using System;
using Autodesk.Revit.DB;
using YJKRevitBase.Math;

namespace YJKRevitKernel.ElementAssistUtility
{
	public class DoorAndWindowAssistMethod
	{
		public static XYZ GetInsertPt(FamilyInstance instance)
		{
			return (instance.Location as LocationPoint).Point;
		}

		public static double GetDoorWinWidth(FamilyInstance instance)
		{
			return UnitUtility.FeetToMM(instance.Symbol.get_Parameter(BuiltInParameter.CASEWORK_WIDTH).AsDouble());
		}
	}
}
